package com.cskaoyan.controller.statisticalreports;

import com.cskaoyan.module.bean.BaseRespVo;
import com.cskaoyan.service.statisticalreports.StatisticalReportsServe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/stat")
public class Stat {
    @Autowired
    StatisticalReportsServe statisticalReportsServe;


    @GetMapping("user")
    public BaseRespVo adminStatUser(){
        return statisticalReportsServe.getStatisticalReportsUser();
    }
//GET http://182.92.235.201:8083/admin/stat/order HTTP/1.1
    @GetMapping("order")
    public BaseRespVo adminStatOrder(){
        return statisticalReportsServe.getStatisticalReportsOrder();

    }
    //http://localhost:8083/admin/stat/goods
    @GetMapping("goods")
    public BaseRespVo adminStatGoods(){
        return statisticalReportsServe.getStatisticalReportsGoods();
    }
}
